import request from '@/utils/request'

// 查询系统充值订单列表
export function listTopup(query) {
  return request({
    url: '/function/topup/list',
    method: 'get',
    params: query
  })
}

// 查询系统充值订单详细
export function getTopup(topUpId) {
  return request({
    url: '/function/topup/' + topUpId,
    method: 'get'
  })
}

// 新增系统充值订单
export function addTopup(data) {
  return request({
    url: '/function/topup',
    method: 'post',
    data: data
  })
}

// 修改系统充值订单
export function updateTopup(data) {
  return request({
    url: '/function/topup',
    method: 'put',
    data: data
  })
}

// 删除系统充值订单
export function delTopup(topUpId) {
  return request({
    url: '/function/topup/' + topUpId,
    method: 'delete'
  })
}
